package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 报价其他信息表
 * </p>
 *
 * @author zhaojk
 * @since 2021-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_offer_ext_info")
@ApiModel(value="OfferExtInfo对象", description="报价其他信息表")
public class OfferExtInfo extends MPCommonEntity {

    @ApiModelProperty(value = "项目联系人")
    private String contactName;

    @ApiModelProperty(value = "项目联系人电话")
    private String contactTel;

    @ApiModelProperty(value = "价格有效期")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime validDate;

    @ApiModelProperty(value = "报价说明")
    private String offerIntro;

    @ApiModelProperty(value = "其他附件")
    private Attachments attachment;

}
